﻿<?php

namespace app\index\controller;
use think\Input;
use think\Request;
use think\Controller;

class User {
	
	
	public  function hello()
	{
		$data =	['name'=>'thinkphp','url'=>'thinkphp.cn'];
		return	json(['data'=>$data,'code'=>1,'message'=>'操作完成']) ;//;
	}
	
	
	public function index(){
		$name = input('request.name');
		$password  = input('request.password');
		$data =	['name'=>$name,'url'=>'thinkphp.cn'];
		return	json(['data'=>$data,'code'=>1,'message'=>'操作测试']) ;//;
	}
	
	
}




?>